package tpenchere.service;

import tpenchere.controllers.MainWindowController;
import tpenchere.ui.MainWindow;

public class MainContext {
	private static MainContext instance = null;
	
	private MainWindowController mainController;
	
	private MainContext(MainWindowController mainController) {
		this.mainController = mainController;
	}
	
	public static void init(MainWindowController mainController) {
		instance = new MainContext(mainController);
	}
	
	public static MainContext getInstance() {
		return instance;
	}
	
	public MainWindowController getMainController() {
		return mainController;
	}

	public void setMainController(MainWindowController mainController) {
		this.mainController = mainController;
	}
}
